package com.ericsson.mq.domain;


public class Attribute {

    private final String eventType = "Threshold Alarm";
    private final String recordType = "ALARM";
    private String probableCause;
    private String specificProblem;
    private String fdn;
    private String objectOfReference;
    private String problemText;
    private String severity;
    private String alarmNumber;

    public void setFdn(String fdn) {
        this.fdn = fdn;
        this.objectOfReference = fdn;
    }

    public String getProbableCause() {
        return probableCause;
    }

    public String getEventType() {
        return eventType;
    }

    public String getRecordType() {
        return recordType;
    }

    public String getSpecificProblem() {
        return specificProblem;
    }

    public void setSpecificProblem(String specificProblem) {
        this.specificProblem = specificProblem;
    }

    public String getFdn() {
        return fdn;
    }

    public String getObjectOfReference() {
        return objectOfReference;
    }

    public String getProblemText() {
        return problemText;
    }

    public void setProblemText(String problemText) {
        this.problemText = problemText;
    }

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(Severity severity) {
        this.severity = severity == null ? "" : severity.name();
    }

    public String getAlarmNumber() {
        return alarmNumber;
    }

    public void setAlarmNumber(String alarmNumber) {
        this.alarmNumber = alarmNumber;
    }

    public void setProbableCause(String probableCause) {
        this.probableCause = probableCause;
    }
}
